package sueca2011;

import java.net.*;

/**
 *
 * @author Renzo, gabrieloliveira
 */
public class Humano extends Jogador{
    private InetAddress ip;

    public Humano(String nome){
        super(nome);
        this.ip = null;
    }

    public InetAddress getIp() {
        return ip;
    }

    public void setIp(InetAddress ip) {
        this.ip = ip;
    }
    protected synchronized void escolheJogada(Carta carta){
        System.out.println("ok");
        this.jogadaAtual = new Jogada(this, carta);
        notifyAll();
    }



    @Override
    protected void escolheJogada() {
        throw new UnsupportedOperationException("Can't choose a card for you, honey!");
    }

}
